/*     */ package com.yss.sofa.cml.geom;
/*     */ 
/*     */ import com.yss.sofa.cml.LinePen;
/*     */ 
/*     */ public class DiagonalLine
/*     */   implements Line
/*     */ {
/*     */   private static final long serialVersionUID = 1L;
/*     */   public static final byte T_L = 1;
/*     */   public static final byte T_R = 2;
/*     */   public static final byte B_L = 3;
/*     */   public static final byte B_R = 4;
/*     */   private LinePen pen;
/*     */   private byte startPoint;
/*     */   private byte endPoint;
/*     */   private float offsetX;
/*     */   private float offsetY;
/*     */ 
/*     */   public DiagonalLine()
/*     */   {
/*     */   }
/*     */ 
/*     */   public DiagonalLine(LinePen pen, byte startPoint, byte endPoint)
/*     */   {
/*  61 */     this(pen, startPoint, endPoint, 0.0F, 0.0F);
/*     */   }
/*     */ 
/*     */   public DiagonalLine(LinePen pen, byte startPoint, byte endPoint, float offsetX, float offsetY) {
/*  65 */     this.pen = pen;
/*  66 */     this.startPoint = startPoint;
/*  67 */     this.endPoint = endPoint;
/*  68 */     this.offsetX = offsetX;
/*  69 */     this.offsetY = offsetY;
/*     */   }
/*     */ 
/*     */   public LinePen getPen()
/*     */   {
/*  74 */     return this.pen;
/*     */   }
/*     */ 
/*     */   public byte getStartPoint()
/*     */   {
/*  82 */     return this.startPoint;
/*     */   }
/*     */ 
/*     */   public byte getEndPoint()
/*     */   {
/*  90 */     return this.endPoint;
/*     */   }
/*     */ 
/*     */   public float getOffsetX()
/*     */   {
/*  98 */     return this.offsetX;
/*     */   }
/*     */ 
/*     */   public float getOffsetY()
/*     */   {
/* 106 */     return this.offsetY;
/*     */   }
/*     */ 
/*     */   public void setPen(LinePen pen)
/*     */   {
/* 114 */     this.pen = pen;
/*     */   }
/*     */ 
/*     */   public void setOffsetX(float offsetX)
/*     */   {
/* 122 */     this.offsetX = offsetX;
/*     */   }
/*     */ 
/*     */   public void setOffsetY(float offsetY)
/*     */   {
/* 130 */     this.offsetY = offsetY;
/*     */   }
/*     */ 
/*     */   public void setStartPoint(byte startPoint)
/*     */   {
/* 138 */     this.startPoint = startPoint;
/*     */   }
/*     */ 
/*     */   public void setEndPoint(byte endPoint)
/*     */   {
/* 146 */     this.endPoint = endPoint;
/*     */   }
/*     */ 
/*     */   public DiagonalLine clone() {
/* 150 */     DiagonalLine clone = null;
/*     */     try {
/* 152 */       clone = (DiagonalLine)super.clone();
/*     */     } catch (CloneNotSupportedException e) {
/* 154 */       throw new RuntimeException(e);
/*     */     }
/* 156 */     clone.pen = this.pen.clone();
/* 157 */     return clone;
/*     */   }
/*     */ }

/* Location:           X:\repository\com\yss\sofa\cml\cml-api\1.1.0\cml-api-1.1.0.jar
 * Qualified Name:     com.yss.sofa.cml.geom.DiagonalLine
 * JD-Core Version:    0.6.0
 */